
<%@ page import="com.mastercard.CreditCard" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'creditCard.label', default: 'CreditCard')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-creditCard" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-creditCard" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list creditCard">
			
				<g:if test="${creditCardInstance?.expiryDate}">
				<li class="fieldcontain">
					<span id="expiryDate-label" class="property-label"><g:message code="creditCard.expiryDate.label" default="Expiry Date" /></span>
					
						<span class="property-value" aria-labelledby="expiryDate-label"><g:formatDate date="${creditCardInstance?.expiryDate}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${creditCardInstance?.bank}">
				<li class="fieldcontain">
					<span id="bank-label" class="property-label"><g:message code="creditCard.bank.label" default="Bank" /></span>
					
						<span class="property-value" aria-labelledby="bank-label"><g:link controller="bank" action="show" id="${creditCardInstance?.bank?.id}">${creditCardInstance?.bank?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${creditCardInstance?.budgets}">
				<li class="fieldcontain">
					<span id="budgets-label" class="property-label"><g:message code="creditCard.budgets.label" default="Budgets" /></span>
					
						<g:each in="${creditCardInstance.budgets}" var="b">
						<span class="property-value" aria-labelledby="budgets-label"><g:link controller="budget" action="show" id="${b.id}">${b?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${creditCardInstance?.cardName}">
				<li class="fieldcontain">
					<span id="cardName-label" class="property-label"><g:message code="creditCard.cardName.label" default="Card Name" /></span>
					
						<span class="property-value" aria-labelledby="cardName-label"><g:fieldValue bean="${creditCardInstance}" field="cardName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${creditCardInstance?.ccv2}">
				<li class="fieldcontain">
					<span id="ccv2-label" class="property-label"><g:message code="creditCard.ccv2.label" default="Ccv2" /></span>
					
						<span class="property-value" aria-labelledby="ccv2-label"><g:fieldValue bean="${creditCardInstance}" field="ccv2"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${creditCardInstance?.nameOnCard}">
				<li class="fieldcontain">
					<span id="nameOnCard-label" class="property-label"><g:message code="creditCard.nameOnCard.label" default="Name On Card" /></span>
					
						<span class="property-value" aria-labelledby="nameOnCard-label"><g:fieldValue bean="${creditCardInstance}" field="nameOnCard"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${creditCardInstance?.number}">
				<li class="fieldcontain">
					<span id="number-label" class="property-label"><g:message code="creditCard.number.label" default="Number" /></span>
					
						<span class="property-value" aria-labelledby="number-label"><g:fieldValue bean="${creditCardInstance}" field="number"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${creditCardInstance?.transactions}">
				<li class="fieldcontain">
					<span id="transactions-label" class="property-label"><g:message code="creditCard.transactions.label" default="Transactions" /></span>
					
						<g:each in="${creditCardInstance.transactions}" var="t">
						<span class="property-value" aria-labelledby="transactions-label"><g:link controller="transaction" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${creditCardInstance?.user}">
				<li class="fieldcontain">
					<span id="user-label" class="property-label"><g:message code="creditCard.user.label" default="User" /></span>
					
						<span class="property-value" aria-labelledby="user-label"><g:link controller="user" action="show" id="${creditCardInstance?.user?.id}">${creditCardInstance?.user?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${creditCardInstance?.id}" />
					<g:link class="edit" action="edit" id="${creditCardInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
